package hub.cathome.service;

import hub.cathome.entity.User;
import org.apache.ibatis.annotations.Param;

import javax.annotation.Nullable;
import java.util.List;

public interface UserService {
    int insertUser(User user);
    int updateUser(User user);
    int deleteUser(Integer userId);
    User getUserByComplexName(String complexNameOrId);
    List<User> getUserByListId(@Param("id") List<Integer> id);
    int login(@Nullable String complexNameOrId, @Nullable Long password);
    User getUserByUserId(Integer userId);
    int getUserCountByComplexName(String complexName);

}
